New Functions in Week 3

runif

{stats}

Draws ranndom numbers from the uniform distribution

set.seed

{base}

Initialise a pseudorandom number generator.

which.max

{base}

return index of the largest value in a vector

xlab

{GGPLOT2}

Label the x axis (ggplot)

order

{base}

Get indexes that will sort a vector

matrix

{base}

Creates a matrix from the given set of values.

ylab

{GGPLOT2}

Label the y axis (ggplot)

sample

{base}

Takes a sample of the specified size

unique

{base}

get unique elements

get_mode

{rstatix}

Compute the mode in a given vector.

rnorm

{base}

Generate random numbers from a normal distribution

after_stat

{GGPLOT2}

Control aesthetic evaluation. On the module used for displying percent

geom_density

{GGPLOT2}

Generates a density plot

round

{base}

Rounds numbers

as.data.frame

{base}

Functions to check if an object is a data frame, or coerce it if possible.

theme_bw

{GGPLOT2}

A black and white ggplot theme

tabulate

{base}

Counts the number of times each integer occurs in an integer-only vector

rbeta

{stats}

Beta Random Number Generating Function

grid.arrange

{gridExtra}

Places graphical objects into a rectangular grid

The end!